import cn.xnatural.enet.common.Utils

def url = "http://19.19.9.156:8092/test/uploadRepor";
new File("E:/tmp/").eachFile {file ->
    if (file.name.endsWith(".json")) {
        def s = Utils.http().post(url).readTimeout(5000).contentType("application/json").jsonBody(file.getText("utf-8")).execute();
        println("file: $file.name,  result: " + s);
    }
}